iconhelper: Move invalidation check
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Nov 2015 00:36:10 +0000 (01:36 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 1 Dec 2015 23:29:29 +0000 (00:29 +0100)
commitc601a9653aae600596f4241bab84b469dfbc2bca
treeb3cff623b6da927796c22fe6d56d34cd296aefb6
parentafd0e284375baa0da4a86c31fd1994a3612e1a24
iconhelper: Move invalidation check

Just do the invalidation check once, there's no need to do it in every
branch of the switch.

Also remove useless checks: These functions will not be called if we
already have a rendered surface.
gtk/gtkiconhelper.c